package com.tydic.order.domain.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

@Data
public class CreditRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 8834753949865373751L;
    /**
     * 商家评论
     */
    @NotBlank(message = "商家评论不能为空")
    private String comment;
    /**
     * 物流分数,0-5
     */
    @NotNull(message = "物流分数不能为空")
    private Integer logisticsRating;
    /**
     * 服务分数,0-5
     */
    @NotNull(message = "服务分数不能为空")
    private Integer serviceRating;
    /**
     * 订单编码
     */
    @NotBlank(message = "订单编码不能为空")
    private String orderCode;
}
